From e8c463f8d43ea1ec4f69f6f675276c4214358cac Mon Sep 17 00:00:00 2001 From: Chris Lawrence Date: Fri, 29 Sep 2006 01:50:51 -0500 Subject: [PATCH] lsb 3.1-17 Debian release. --- debian/changelog | 7 +++++++ init-functions | 1 + lsb_release | 13 ++++++++----- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index 022e33c..a6ba9d5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +lsb (3.1-17) unstable; urgency=low + + * Set FANCYTTY to a null string to cope with init scripts that for some + reason seem to use set -u. (Closes: #390085) + + -- Chris Lawrence Fri, 29 Sep 2006 01:50:51 -0500 + lsb (3.1-16) unstable; urgency=low * Improve documentation of killproc(). (Closes: #384814) diff --git a/init-functions b/init-functions index c4ddfc8..65c6722 100644 --- a/init-functions +++ b/init-functions @@ -296,4 +296,5 @@ log_action_end_msg () { fi } +FANCYTTY= [ -e /etc/lsb-base-logging.sh ] && . /etc/lsb-base-logging.sh || true diff --git a/lsb_release b/lsb_release index 2f1d992..016b407 100755 --- a/lsb_release +++ b/lsb_release @@ -1,7 +1,7 @@ #!/usr/bin/python # lsb_release command for Debian -# (C) 2005 Chris Lawrence +# (C) 2005-06 Chris Lawrence # This package is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -56,6 +56,7 @@ def valid_lsb_versions(version, module): return [version] +# This is Debian-specific at present def check_modules_installed(): # Find which LSB modules are installed on this system output = commands.getoutput("dpkg-query -f '${Version} ${Provides}\n' -W %s 2>/dev/null" % PACKAGES) @@ -153,10 +154,8 @@ def guess_debian_release(): return distinfo -def get_distro_information(): - distinfo = guess_debian_release() - - # Replace any info in /etc/lsb-release +def get_lsb_information(): + distinfo = {} if os.path.exists('/etc/lsb-release'): for line in open('/etc/lsb-release'): line = line.strip() @@ -168,7 +167,11 @@ def get_distro_information(): if arg.startswith('"') and arg.endswith('"'): arg = arg[1:-1] distinfo[var] = arg + return distinfo +def get_distro_information(): + distinfo = guess_debian_release() + distinfo.update(get_lsb_information()) return distinfo def main(): -- 2.30.2